<h1>New rating</h1>

<%= error_messages_for :rating %>

<% form_for(:rating, :url => ratings_path) do |f| %>
  <p>
    <b>Amount</b><br />
    <%= f.text_field :amount %>
  </p>

  <p>
    <b>Subject</b><br />
    <%= f.text_field :subject_id %>
  </p>

  <p>
    <b>Subject type</b><br />
    <%= f.text_field :subject_type %>
  </p>

  <p>
    <b>Rater</b><br />
    <%= f.text_field :rater_id %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.text_field :created_at %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', ratings_path %>